import request from '@/utils/request'
import API from './constants'

export const getCategories = () => request({
  url: API.API_CATEGORY,
  method: 'GET',
  params: {
    start: 0,
  },
})

export const getSubCategories = id => request({
  url: API.API_TAB + '/' + id,
})
